﻿using System;
using System.Collections.Generic;

namespace QIDong.WeApp.Models
{
    public class ConfirmOrderInputDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Uid { get; set; }
        
        /// <summary>
        /// 收货地址ID ShippingAddressId
        /// </summary>
        public int SaId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string selList { get; set; }

        /// <summary>
        /// 商品
        /// </summary>
        public List<OrderDetail> Products { get; set; }

    }
    /// <summary>
    /// 采用后台购物车结算时，确认订单要的参数
    /// </summary>
    public class ConfirmBackEndOrderInputDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Uid { get; set; } 

        /// <summary>
        /// 收货地址ID ShippingAddressId
        /// </summary>
        public int SaId { get; set; }

        /// <summary>
        /// 全局唯一标示
        /// </summary>
        public string Sid { get; set; } = "";
        /// <summary>
        /// 选中的购物车项键列表
        /// </summary>
        public string SelList { get; set; }

        

        

    }
    /// <summary>
    /// 需要时扩展
    /// </summary>
    public class CreateOrderInputDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 收货地址ID ShippingAddressId
        /// </summary>
        public int SaId { get; set; }
        /// <summary>
        /// 商品
        /// </summary>
        public List<OrderDetail> Products { get; set; }

    }

    public class OrderDetail
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Number { get; set; }
        
    }

    /// <summary>
    /// 财务车采用后台结算，提交订单的参数
    /// </summary>
    public class CreateBackEndOrderInputDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 全局唯一标识符
        /// </summary>
        public string Sid { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 收货地址ID ShippingAddressId
        /// </summary>
        public int SaId { get; set; }
        /// <summary>
        /// 选中的购物车项键列表
        /// </summary>
        public string SelList { get; set; }

        /// <summary>
        /// 支付积分
        /// </summary>
        public int PayCreditCount { get; set; }
        /// <summary>
        /// 客户已经激活的优惠劵
        /// </summary>
        public string CouponIdList { get; set; }
        /// <summary>
        /// 客户还未激活的优惠劵
        /// </summary>
        public string CouponSNList { get; set; }
        /// <summary>
        /// 满减
        /// </summary>
        public int FullCut { get; set; }
        /// <summary>
        /// 卖家备注
        /// </summary>
        public string BuyerRemark { get; set; }
        /// <summary>
        /// 预定开始时间
        /// </summary>
        public DateTime BookStartTime { get; set; }

        /// <summary>
        /// 预定结束时间
        /// </summary>
        public DateTime BookEndTime { get; set; }

        /// <summary>
        /// 支付余额
        /// </summary>
        public decimal PayCash { get; set; }
        

        public CreateBackEndOrderInputDto()
        {
            BookStartTime = BookEndTime = new DateTime(1900, 1, 1);
            Sid = "";

        }



    }
    /// <summary>
    /// 当面付
    /// </summary>
    public class CreateDirectPaymentDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 店铺编号
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal OrderAmount { get; set; }
        /// <summary>
        /// 支付积分
        /// </summary>
        public int PayCreditCount { get; set; }
        /// <summary>
        /// 客户已经激活的优惠劵
        /// </summary>
        public string CouponIdList { get; set; }
        /// <summary>
        /// 客户还未激活的优惠劵
        /// </summary>
        public string CouponSNList { get; set; }
        /// <summary>
        /// 支付余额
        /// </summary>
        public decimal PayCash { get; set; }

        



    }
}
